import { request } from '/@/utils/http/axios'



// 标记试卷异常
export const markYcForKssj = params => {
  return request({
    url: `/marking/markYcForKssj`,
    method: 'POST',
    params,
  })
}

// 标记教师异常
export const markYcForPjls = params => {
  return request({
    url: `/marking/markYcForPjls`,
    method: 'POST',
    params,
  })
}

// 标记题目异常
export const markYcForSjtm = params => {
  return request({
    url: `/marking/markYcForSjtm`,
    method: 'POST',
    params,
  })
}


// 评阅标准列表
export const getAbnormityTeacher = params => {
  return request({
    url: `/coreWork/getTxjgTreeList`,
    method: 'GET',
    params,
  })
}




// 发布试卷
export const getAbnorOpublishSjByKmdm = params => {
  return request({
    url: `/coreWork/publishTest`,
    method: 'GET',
    params,
  })
}



// 终止试评阅
export const setBreakTestPyProcess = params => {
  return request({
    url: `/coreWork/breakTestPyProcess`,
    method: 'GET',
    params,
  })
}


// 统计客观题分
export const ScoreComputeAndKgtApply = params => {
  return request({
    url: `/coreWork/kgtScoreComputeAndApply`,
    method: 'GET',
    params,
  })
}


//获取科目统计数据
export const getAcountmdm = params => {
  return request({
    url: `/summary/pySzWorkbenchSummary`,
    method: 'GET',
    params,
  })
}


// 教师评阅监测
export const getpyMonitorChart = params => {
  return request({
    url: `/summary/pyMonitorChart`,
    method: 'POST',
    params,
  })
}


//获取科目评阅阶段
export const getKmPyjd = params => {
  return request({
    url: `/basic/getKmPyJd`,
    method: 'GET',
    params,
  })
}



// 评阅标准重置

export const resetPySzbzCkdaBzDaail = params => {
  return request({
    url: `/coreWork/resetPySzConfig`,
    method: 'POST',
    params,
  })
}




// 评阅进度重置

export const resetPyProcess = params => {
  return request({
    url: `/coreWork/resetPyProcess`,
    method: 'POST',
    params,
  })
}


// 获取组长科目评阅详情
export const findSuGetewDetail = params => {
  return request({
    url: `/KmPyjd/findSubjectReviewDetail`,
    method: 'GET',
    params,
  })
}

// 获取组长评阅工作数据统计
export const reviewWorkDetail = params => {
  return request({
    url: `/KmPyjd/reviewWorkCount`,
    method: 'GET',
    params,
  })
}



// 获取组长试卷情况列表
export const reviewpaperCondition = params => {
  return request({
    url: '/summary/getPyDetailSummary',
    method: 'GET',
    params,
  })
}

// 批量设置评阅标准
export const reviewbatchHandlePySzbz = params => {
  return request({
    url: `/coreWork/saveOrUpdatePySzInfo`,
    method: 'POST',
    params,
  })
}


/**
 * 通过试题id查询设置详情
 * */
export const reviewGetPySzInfoByStId = params => {
  return request({
    url: `/coreWork/getPySzInfoByStId`,
    method: 'GET',
    params,
  })
}

/**
 * 通过试题分配教师
 * */
export const distributePyJsFpSingle = params => {
  return request({
    url: `/coreWork/distributePyJsFpSingle`,
    method: 'POST',
    params,
  })
}




// 异常试卷列表
export const getAbnormityPaper = params => {
  return request({
    url: `/yc/findYcDataList`,
    method: 'GET',
    params,
  })
}


// 异常详情
export const getYcDetail = params => {
  return request({
    url: `/yc/getYcDetail`,
    method: 'GET',
    params,
  })
}



// (撤销/重置)草稿数据
export const setrevokeSaveTxjgDraft = params => {
  return request({
    url: `/txjgCore/revokeTxjgDraft`,
    method: 'POST',
    params,
  })
}


// 删除(标记类)
export const setDelTxjgDraft = params => {
  return request({
    url: `/txjgCore/delTxjgDraft`,
    method: 'POST',
    params,
  })
}

// 获取删除标记数据(草稿类)
export const getDelTxjgDraft = params => {
  return request({
    url: `/txjgCore/getDelTxjgDraft`,
    method: 'GET',
    params,
  })
}


// 修改(标记类)
export const setUpdateTxjgDraft = params => {
  return request({
    url: `/txjgCore/updateTxjgDraft`,
    method: 'POST',
    params,
  })
}

// 修改(标记类)
export const getUpdateTxjgDraft = params => {
  return request({
    url: `/txjgCore/getUpdateTxjgDraft`,
    method: 'GET',
    params,
  })
}


// 新增(标记类)
export const setSaveTxjgDraft = params => {
  return request({
    url: `/txjgCore/saveTxjgDraft`,
    method: 'POST',
    params,
  })
}


// 获取新增草稿数据(草稿类)
export const getSaveTxjgDraft = params => {
  return request({
    url: `/txjgCore/getSaveTxjgDraft`,
    method: 'GET',
    params,
  })
}


// 应用试题结构
export const setApplyTxjg = params => {
  return request({
    url: `/txjgCore/formalApplyTxjgDraftData`,
    method: 'GET',
    params,
  })
}





// 新增子题
export const pyzzOperateSave = params => {
  return request({
    url: `/txjgCore/pyzzOperateTxjg4Save`,
    method: 'POST',
    params,
  })
}
// 编辑新增子题
export const pyzzOperateUpdate = params => {
  return request({
    url: `/txjgCore/pyzzOperateTxjg4Update`,
    method: 'POST',
    params,
  })
}
// 删除新增子题
export const pyzzOperateDel = params => {
  return request({
    url: `/txjgCore/pyzzOperateTxjg4Del`,
    method: 'POST',
    params,
  })
}




export const getFindKmPyztPaper = params => {
  return request({
    url: `/summary/findKmPyztList`,
    method: 'GET',
    params,
  })
}
